body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #f7f7f9;
    color: #222;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

h1 { margin: 0 0 16px; }

.controls .row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.status { color: #555; }

.btn {
    display: inline-block;
    background: #1f77b4;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

button {
    background: #1f77b4;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
button:hover { opacity: 0.9; }

.layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
    margin-top: 10px;
}

#graph {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#stats, #stepsPanel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
}

#stepsPanel {
    margin-top: 12px;
    max-height: 360px;
    overflow: auto;
}

ol#stepsList {
    margin: 8px 0 0;
    padding-left: 18px;
}